home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-12-13 | 3.3 KB | 145 lines | [TEXT/MPS ] |
-
- /*
- * This file was generated by the SOM Compiler.
- * FileName: Delta Quadrant:Source:OD:SampleCode:SOMTextEditor:Source:TextEditorSettingsExt.xh.
- * Generated using:
- * SOM Precompiler somipc: 2.18
- * SOM Emitter emitxh.dll: 2.33
- */
-
- /*
- *
- * Implementation Types
- *
- */
-
-
- #ifndef SOM_TextEditorSettingsExt_xh
- #define SOM_TextEditorSettingsExt_xh
-
- class TextEditorSettingsExt;
-
- #define TextEditorSettingsExt_MajorVersion 1
- #define TextEditorSettingsExt_MinorVersion 0
-
- /* C++ SOM defs */
- #include <somcls.xh>
- #include <somcm.xh>
-
- /* C++ parent defs */
- #ifndef SOM_ODSettingsExtension_xh
- #include <Settings.xh>
- #endif
-
- #ifndef TextEditorSettingsExt_API
- #define TextEditorSettingsExt_API
- /*
- * -- The Class API
- */
-
- /*
- * Start of user-defined types:
- */
- class SOMClass;
- class SOMObject;
- class ODFrame;
- class ODFacet;
- class ODObject;
- class ODExtension;
- class ODRefCntObject;
- class ODSettingsExtension;
- class ODPart;
-
- /*
- * End of user-defined types.
- */
-
- #ifdef OLDIBMSOMAPISUPPORT
- #define TextEditorSettingsExtCClassData TextEditorSettingsExtClassData
- #define TextEditorSettingsExtNewClass(major,minor) somNewVersionedClassReference(TextEditorSettingsExt,major,minor)
- #endif
-
- /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
- #define TextEditorSettingsExtMetaClass SOMClass
-
-
- /* The API to the TextEditorSettingsExt class object, and the methods it introduces. */
- SOMEXTERN struct TextEditorSettingsExtClassDataStructure {
- #ifdef OLDIBMSOMAPISUPPORT
- SOMClass *classObject; /* always zero, use somNewClassReference instead */
- #else
- long zero;
- #endif
- somStaticClassInfo *sci;
- somDToken instanceDataToken;
- long reserved [3];
- } SOMDLINK TextEditorSettingsExtClassData;
-
- #if !defined(TextEditorSettingsExt_Class_Source) && !defined(SOM_Module_texteditorsettingsext_Source)
- #if PRAGMA_IMPORT_SUPPORTED
- #pragma import list TextEditorSettingsExtClassData
- #endif
- #endif
-
-
- /*
- * -- Typedefs and inline method declarations for left path inherited methods
- * -- are omitted because this compilation had -museinheritedmethods in effect
- */
-
-
- /*
- * -- Typedefs for TextEditorSettingsExt Method Procedures
- */
- SOMEXTERN {
- }
-
- #endif /* TextEditorSettingsExt_API */
-
-
- /*
- * -- This emitter treats Method Tokens as Thunks by default.
- * -- Use the sc modifier "nothunks" to change this default
- */
- #undef somresolve_
- #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
-
- /*
- * -- The C++ Wrapper Class for TextEditorSettingsExt
- */
- class TextEditorSettingsExt : public ODSettingsExtension
- {
- public:
-
- // TextEditorSettingsExt::new registers use of the class object, and then uses somNew
- // to allocate memory and load the object method table pointer.
- void *operator new(size_t size)
- {
- SOM_IgnoreWarning(size);
- // Allocate memory using the default allocator for TextEditorSettingsExt, and
- // clear mem & set method table pointer, call basic initialization
- #ifdef SOMCHKNULL
- void * __somResult = (void *)
- somNewObject(TextEditorSettingsExt);
- SOMCHKNULL(__somResult);
- return __somResult;
- #else
- return (void*) somNewObject(TextEditorSettingsExt);
- #endif
- }
-
- // TextEditorSettingsExt::delete uses the default deallocator for the object's class.
- void operator delete(void * obj)
- {
- if (obj) {
- SOM_Resolve(obj,SOMObject,somFree)
- ( (SOMObject*) obj );
- }
- }
-
- }; /* TextEditorSettingsExt */
-
-
-
- #endif /* SOM_TextEditorSettingsExt_xh */
-